from django.db import models
from django.utils.html import format_html

class SubmitInfo(models.Model):
    name = models.CharField(verbose_name='姓名',max_length=32)
    xueyuan =  models.CharField(verbose_name='学院',max_length=32)
    shenfen = models.CharField(max_length=32,default="本科生")
    kahao =  models.CharField(max_length=100)
    phone =  models.CharField(max_length=32)
    email =  models.CharField(max_length=32)
    people =  models.CharField(max_length=32)
    local =  models.CharField(max_length=32)
    time =  models.CharField(max_length=32)
    date =  models.DateField()
    use =  models.CharField(max_length=400)
    satu =  models.CharField(max_length=32)

    class Meta:
        verbose_name = '申请列表'
        verbose_name_plural = '申请记录'
    def __str__(self):  # 在Python3中用 __str__ 代替 __unicode__
        return self.email+'\n'+self.name+'\n'+str(self.date)+'\n'+self.time+'\n'+self.local
# class SubmitInfo(models.Model):
#     name = models.CharField(max_length=32)
#     xueyuan =  models.CharField(max_length=32)
#     kahao =  models.CharField(max_length=32)
#     phone =  models.CharField(max_length=32)
#     email =  models.CharField(max_length=32)
#     people =  models.CharField(max_length=32)
#     local =  models.CharField(max_length=32)
#     time =  models.CharField(max_length=32)
#     date =  models.DateField()
#     use =  models.CharField(max_length=400)
#     satu =  models.CharField(max_length=32)
#
#     class Meta:
#         verbose_name = '申请列表'
#         verbose_name_plural = '申请记录'
#     def __str__(self):  # 在Python3中用 __str__ 代替 __unicode__
#         return self.name
# Create your models here.
